
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import store from './store/index.js'
import http from './api/request.js'
import hasPermission from './api/permission.js'
import { parseTime, resetForm, addDateRange, addTimeRange, selectDictLabel, selectDictLabels, handleTree, handleTreeByLevel } from "@/utils/common.js";
//import './components/interceptor.js'

Vue.prototype.$store = store
Vue.prototype.$http = http
Vue.prototype.hasPermission = hasPermission
Vue.config.productionTip = false
Vue.prototype.parseTime = parseTime
Vue.prototype.handleTreeByLevel = handleTreeByLevel

App.mpType = 'app'

const app = new Vue({
	store,
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
import hasPermi from '@/directive/permission/hasPermi'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}

// #endif